<div id="addInspectionPlanModel" class="modal fade" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-body">
                <h3 class="m-t-none m-b ">添加巡检计划</h3>
                <div class="ibox-content">
                    <div>
                        <div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">计划名称</label>
                                <div class="col-sm-10">
                                    <input v-model="addInspectionPlanInfo.inspectionPlanName" type="text" placeholder="必填，请填写计划名称" class="form-control">
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">巡检路线</label>
                                <div class="col-sm-10">
                                    <vc:create path="property/inspectionRouteSelect2" parentModal="addInspectionPlanModel" callBackListener="addInspectionPlanInfo" callBackFunction="notify" namespace="addInspectionPlan">
                                    </vc:create>
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">执行周期</label>
                                <div class="col-sm-10">
                                    <select class="custom-select" v-model="addInspectionPlanInfo.inspectionPlanPeriod">
                                        <option selected disabled value="">必填，请选择执行周期</option>
                                        <option v-for="(item,index) in addInspectionPlanInfo.inspectionPlanPeriods"
                                                :key="index" v-bind:value="item.statusCd">{{item.name}}
                                        </option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">开始时间</label>
                                <div class="col-sm-10">
                                    <input v-model="addInspectionPlanInfo.startTime" type="text" placeholder="必填，请填写开始时间" class="form-control addInspectionPlanStartTime">
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">结束时间</label>
                                <div class="col-sm-10">
                                    <input v-model="addInspectionPlanInfo.endTime" type="text" placeholder="必填，请填写结束时间" class="form-control addInspectionPlanEndTime">
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">签到方式</label>
                                <div class="col-sm-10">
                                    <select class="custom-select" v-model="addInspectionPlanInfo.signType">
                                        <option selected disabled value="">必填，请选择签到方式</option>
                                        <option v-for="(item,index) in addInspectionPlanInfo.signTypes" :key="index"
                                                v-bind:value="item.statusCd">{{item.name}}
                                        </option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">状态</label>
                                <div class="col-sm-10">
                                    <select class="custom-select" v-model="addInspectionPlanInfo.state">
                                        <option selected disabled value="">必填，请选择状态</option>
                                        <option v-for="(item,index) in addInspectionPlanInfo.states" :key="index"
                                                v-bind:value="item.statusCd">{{item.name}}
                                        </option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">备注</label>
                                <div class="col-sm-10">
                                    <textarea v-model="addInspectionPlanInfo.remark" type="text" placeholder="选填，请填写备注" class="form-control">
                                    </textarea>
                                </div>
                            </div>
                            <div class="ibox-content">
                                <button class="btn btn-primary float-right" type="button" v-on:click="saveInspectionPlanInfo()">
                                    <i class="fa fa-check"></i>&nbsp;保存
                                </button>
                                <button type="button" class="btn btn-warning float-right" style="margin-right:20px;" v-on:click="cleanInspectionPlanAddModel()" data-dismiss="modal">
                                    <i class="fa fa-close"></i>&nbsp;取消
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>